package com.example.friend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.example.core.domain.entity.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
* <p>
*
* </p>
*
* @author 49940
* @date 2024年01月22日 18:09:26
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_message_text")
public class MessageText extends BaseEntity {
    
	@TableId(value = "TEXT_ID", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
	@Schema(description = "消息内容 id")
	private Long textId;

	@Schema(description = "消息标题")
	private String messageTitle;

	@Schema(description = "消息名称")
	private String messageContent;

	@Schema(description = "发布人id")
	private Long userId;

	@Schema(description = "消息类型（0 报名/取消报名提醒 1 开赛提醒 2 比赛结束提醒 3 比赛结果推送）")
	private Integer messageType;
}